/*    */ package com.lmpop.createIndex.search;
/*    */ 
/*    */ import com.lmpop.createIndex.searchModel.SearchData;
/*    */ import com.lmpop.createIndex.searchModel.SearchModel;
/*    */ import java.io.IOException;
/*    */ import java.util.ArrayList;
/*    */ import java.util.List;
/*    */ import java.util.Map;
/*    */ 
/*    */ public class AuctionIndexFiles
/*    */ {
/*    */   public ProperUtil properUtil;
/*    */   private String file_path;
/*    */ 
/*    */   public AuctionIndexFiles()
/*    */   {
/* 17 */     this.properUtil = new ProperUtil();
/* 18 */     this.file_path = this.properUtil.getFilePathByModel("auction");
/*    */   }
/*    */ 
/*    */   public ArrayList getAllWholesale() throws IOException {
/* 22 */     SearchData search = new SearchData();
/* 23 */     ArrayList paraList = new ArrayList();
/*    */ 
/* 25 */     return search.getSearchInfo(this.file_path, paraList);
/*    */   }
/*    */ 
/*    */   public List getAuctionList(Map paraMap) throws IOException {
/* 29 */     ArrayList auctionList = new ArrayList();
/* 30 */     SearchData search = new SearchData();
/* 31 */     ArrayList paraList = new ArrayList();
/*    */ 
/* 33 */     String cat_id = ""; String good_name = ""; String auction_id = "";
/* 34 */     if (paraMap.get("auction_id") != null) auction_id = paraMap.get("auction_id").toString();
/* 35 */     if (paraMap.get("cat_id") != null) cat_id = paraMap.get("cat_id").toString();
/* 36 */     if (paraMap.get("good_name") != null) good_name = paraMap.get("good_name").toString();
/*    */ 
/* 39 */     paraList.add(new SearchModel("0", "auction_id", auction_id));
/* 40 */     paraList.add(new SearchModel("0", "cat_id", cat_id));
/* 41 */     paraList.add(new SearchModel("0", "good_name", good_name));
/*    */ 
/* 43 */     auctionList = search.getSearchInfo(this.file_path, paraList);
/* 44 */     return auctionList;
/*    */   }
/*    */ }

/* Location:           F:\电商\commons-utils.jar
 * Qualified Name:     com.lmpop.createIndex.search.AuctionIndexFiles
 * JD-Core Version:    0.6.0
 */